/*    */ package com.yss.sofa.cml.type;
/*    */ 
/*    */ public enum LayoutEnum
/*    */   implements BaseEnum
/*    */ {
/* 15 */   FIXED(1, "FIXED"), 
/*    */ 
/* 22 */   PERCENT(2, "PERCENT"), 
/*    */ 
/* 29 */   AUTO(3, "AUTO");
/*    */ 
/*    */   public static final LayoutEnum DEFAULT;
/*    */   private final transient byte value;
/*    */   private final transient String name;
/*    */ 
/* 37 */   private LayoutEnum(int value, String name) { this.value = (byte)value;
/* 38 */     this.name = name; }
/*    */ 
/*    */   public Byte getValueByte()
/*    */   {
/* 42 */     return new Byte(this.value);
/*    */   }
/*    */ 
/*    */   public final byte getValue() {
/* 46 */     return this.value;
/*    */   }
/*    */ 
/*    */   public String getName() {
/* 50 */     return this.name;
/*    */   }
/*    */ 
/*    */   public static int calucate(int fixed, int percent) {
/* 54 */     return calucate(fixed, percent / 100.0F);
/*    */   }
/*    */ 
/*    */   public static int calucate(int fixed, float percent) {
/* 58 */     return (int)(fixed * percent);
/*    */   }
/*    */ 
/*    */   static
/*    */   {
/* 31 */     DEFAULT = FIXED;
/*    */   }
/*    */ }

/* Location:           X:\repository\com\yss\sofa\cml\cml-api\1.1.0\cml-api-1.1.0.jar
 * Qualified Name:     com.yss.sofa.cml.type.LayoutEnum
 * JD-Core Version:    0.6.0
 */